package com.inspire.springboot.kt.study.entity

import com.inspire.springboot.kt.study.Study

/**
 * @author     ：inspire
 * @date       ：Created in 2024/5/13 17:47
 * @description：
 * @modified By：inspire
 * @version:
 */
class Student(name:String,age:Int,number:String,grade:Int):Person(name, age),Study {
    var number=""
    var grade=0

    constructor(name:String,age :Int,number:String):this(name,age,number,0){

    }
    constructor():this("",0,"",0){

    }
    override fun study(){
        println(name+" is studying!")
    }

    override fun readBooks() {
        println(name+" is readBooks!")
    }

    override fun doHomework() {
        println(name+" do homework!")
    }
}